home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 11 - 1995 / 11.02 Feb 95 / Yenta / Erics C++ Libraries / Interface Classes / CPPIntText.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-04  |  724 b   |  34 lines  |  [TEXT/KAHL]

  1. /********************************************************* DEFINITION
  2.     DATE:    9/28/93
  3.     AUTHOR: Eric R. Rosé
  4.     
  5.     CLASS:  CPPIntText
  6.     
  7.     SUPERCLASS: CPPDialogText
  8.     
  9.         This C++ class manages a textedit area with no scrollbars and
  10.         only accepts numbers up to 255 characters.
  11.     
  12. ********************************************************************/
  13.  
  14. #pragma once
  15.  
  16. #include <CPPDialogText.h>
  17.  
  18. class CPPIntText : public CPPDialogText {
  19. public:
  20.  
  21.             CPPIntText (CPPWindow *OurWindow,
  22.                            Rect *itsBounds,
  23.                            int    defaultValue,
  24.                            int maxLength = 255,
  25.                            int Font = geneva,
  26.                            int FSize = 9);
  27.             ~CPPIntText (void);
  28.     
  29.     virtual    char    *ClassName (void);
  30.  
  31.     int    GetAsInt (void);
  32.     void    SetToInt (int newValue);
  33.     
  34. };